
public class SimpleThread extends Thread {
	public void run(){
		for (int i =0; i<10; i++){
			System.out.println(" i = " + i);
			try{
				sleep ((long) (Math.random() *10000));
			} catch(InterruptedException e){
				
			}
		}
		System.out.println("DONE!  ");
	}
	public static void main (String args[]){
		SimpleThread st = new SimpleThread();
		st.start();
		System.out.println("Exit From Main Thread.");
	}
}
